package cn.lg.soar.core.model;

import java.time.Duration;

/**
 * @author luguoxiang 469599794@qq.com
 * @Date: 2025/5/17 16:25
 * 开源项目：https://gitee.com/lgx1992/lg-soar 求star！请给我star！请帮我点个star！
 */
public class AccessTokenProps {

    /**
     * 访问token有密钥
     */
    private String accessTokenSecret;

    /**
     * 访问token有效期
     */
    private Duration accessTokenExpire = Duration.ofMinutes(30);

    public AccessTokenProps() {
    }

    public AccessTokenProps(String accessTokenSecret, Duration accessTokenExpire) {
        this.accessTokenSecret = accessTokenSecret;
        this.accessTokenExpire = accessTokenExpire;
    }

    public String getAccessTokenSecret() {
        return accessTokenSecret;
    }

    public void setAccessTokenSecret(String accessTokenSecret) {
        this.accessTokenSecret = accessTokenSecret;
    }

    public Duration getAccessTokenExpire() {
        return accessTokenExpire;
    }

    public void setAccessTokenExpire(Duration accessTokenExpire) {
        this.accessTokenExpire = accessTokenExpire;
    }

}
